<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>EPassword Login</title>
    <link rel="shortcut icon" href="./static/fav.png">
    <link rel="stylesheet" href="./static/css/common.css">
    <link rel="stylesheet" href="./static/css/login.css">

    <script src="./static/js/encrypto.js"></script>
    <script src="./static/js2/user.js"></script>
    <script src="./static/js/common.js"></script>
</head>
<body>
    <!-- toast -->
    <div class="toast" id="app-toast">
        <em class="iconfont icon-info"></em>
        <span></span>
    </div>

    <div class="datasource-ctn">
        <div class="datasource-area">
            <div style="text-align: right;">
                DataSource: <span id="datasource-text" style="margin: 0 10px 0 5px;font-size: 16px;"></span> 
                <!-- <span class="icon-arrow" title="change datasource" id="toggle-change-datasource"></span> -->
            </div>
            <!-- <div class="form-group" style="margin-top: 10px;">
                <input type="text" class="form-control2" placeholder="DataSource" id="datasource-input" >
                <button class="btn btn-info" id="btn-datasource">Change</button>
                <button class="btn btn-info" id="btn-restore" style="margin-left: 10px;">Restore</button>
            </div> -->
        </div>
    </div>

    <div class="page-ctn">
    
        <div class="login-ctn">
            <div id="changepw-area" style="display: none;">
                <form id="changepw-form">
                    <div class="input-group changepw-show">
                        <input type="password" name="oldPassword" placeholder="Old Password" class="form-control">
                    </div>
                    <div class="input-group changepw-show">
                        <input type="password" name="newPassword" placeholder="New Password" class="form-control">
                    </div>
                    <div class="input-group changepw-show">
                        <input type="password" name="newPassword2" placeholder="Repeat New Password" class="form-control">
                    </div>
                </form>
                <button class="submit-btn changepw-show" type="button" id="btn-changepwd">
                    <i class="icon-loading"></i>
                    <span>Change Password</span>
                </button>
                <div class="login-ft">
                    <span></span>
                    <a href="javascript:;" class="link" onclick="togglePageCode(2)">Login</a>
                </div>
            </div>
    
            <div id="login-area" style="display: none;">
                <form id="login-form">
                    <div class="input-group">
                        <input type="text" name="username" placeholder="username" class="form-control">
                    </div>
                    <div class="input-group">
                        <input type="password" name="password" placeholder="password" class="form-control">
                    </div>
                    <button class="submit-btn" type="button" id="btn-submit">Login</button>
                </form>
                <div class="login-ft">
                    <span></span>
                    <a href="javascript:;" class="link" onclick="togglePageCode(3)">Change Password</a>
                </div>
            </div>
    
            <div id="init-area" style="display: none;">
                <form id="init-form">
                    <div class="input-group">
                        <input type="password" name="password" placeholder="Password" class="form-control">
                    </div>
                    <div class="input-group">
                        <input type="password" name="password2" placeholder="Repeat Password" class="form-control">
                    </div>
                    <button class="submit-btn" type="button" id="btn-init">Initialization Password</button>
                </form>
            </div>
        </div>
    </div>
    

<script src="./static/js/login.js"></script>
</body>
</html>